<ion-header>
	<ion-navbar>
		<ion-title>请假</ion-title>
	</ion-navbar>
</ion-header>
<ion-content>
	<ion-list class="approval-list" *ngIf="gzqjgl.proauth.qjsq">
		<ion-list-header>
			<span class="approval-list-header-text">申请信息</span>
		</ion-list-header>
		<ion-item>
			<ion-label class="bhq-title">部门:</ion-label>
			<ion-label class="bhq-content-right">{{gzqjgl.editRow.szdw}}</ion-label>
		</ion-item>
		<ion-item>
			<ion-label class="bhq-title"><font color="red">*</font>请假人姓名:</ion-label>
			<ion-label class="bhq-content-right">{{gzqjgl.editRow.qjrxm}}</ion-label>
		</ion-item>
		<ion-item>
			<ion-label class="bhq-title"><font color="red">*</font>请假类型:</ion-label>
			<ion-select class="bhq-content-right" [(ngModel)]="gzqjgl.editRow.qjlx" cancelText="取消" okText="确认">
				<div *ngFor="let item of qjlb.datas">
					<ion-option value="{{item.id}}">{{item.display}}</ion-option>
				</div>
			</ion-select>
		</ion-item>
		<ion-item>
			<ion-label class="bhq-title"><font color="red">*</font>申请事由:</ion-label>
			<ion-input class="bhq-content-right" [(ngModel)]="gzqjgl.editRow.sqsy"></ion-input>
		</ion-item>
		<ion-item>
			<ion-label class="bhq-title"><font color="red">*</font>开始时间:</ion-label>
			<ion-datetime class="bhq-content-right" (ngModelChange)="setTs($event)"
			max="2100-10-31" displayFormat="YYYY-MM-DD" [(ngModel)]="gzqjgl.editRow.kssj" cancelText="取消"
			 doneText="确认"></ion-datetime>
		</ion-item>
		<ion-item>
			<ion-label class="bhq-title"><font color="red">*</font>开始时段:</ion-label>
			<ion-select class="bhq-content-right" [(ngModel)]="gzqjgl.editRow.sjsjjd"
			 cancelText="取消" okText="确认" (ngModelChange)="setTs($event)">
				<ion-option value="08">08时</ion-option>
				<ion-option value="14">14时</ion-option>
			</ion-select>
		</ion-item>
		<ion-item>
			<ion-label class="bhq-title"><font color="red">*</font>结束时间:</ion-label>
			<ion-datetime class="bhq-content-right"  max="2100-10-31" (ngModelChange)="setTs($event)"
			displayFormat="YYYY-MM-DD" [(ngModel)]="gzqjgl.editRow.jssj" cancelText="取消"
			 doneText="确认"></ion-datetime>
		</ion-item>
		<ion-item>
			<ion-label class="bhq-title"><font color="red">*</font>结束时段:</ion-label>
			<ion-select class="bhq-content-right" [(ngModel)]="gzqjgl.editRow.jssjjd" 
			(ngModelChange)="setTs($event)"
			cancelText="取消" okText="确认">
				<ion-option value="12">12时</ion-option>
				<ion-option value="18">18时</ion-option>
			</ion-select>
		</ion-item>
		<ion-item>
			<ion-label class="bhq-title"><font color="red">*</font>请假天数:</ion-label>
			<ion-input class="bhq-content-right" [(ngModel)]="gzqjgl.editRow.qjts"></ion-input>
		</ion-item>
		<ion-item>
			<ion-label class="bhq-title">申请日期:</ion-label>
			<ion-label class="bhq-content-right">{{gzqjgl.editRow.sqrq | date:'yyyy-MM-dd HH:mm:ss'}}</ion-label>
		</ion-item>
	</ion-list>
</ion-content>

<ion-footer>
	<button class="submit-btn" (click)="userFormValidate() && gzqjgl.getNextTask(null,null);">提交</button>
</ion-footer>